void set_dim(int ndim)
None
This function sets the number of co-ordinates in each point of the curve. Setting ndim to 3 will make a curve in 3D space.